<!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>Johnson's Algorithm - All simple cycles in directed graph</title>
        <style>
</style>
        
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/markdown.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/highlight.css">
<style>
            body {
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif;
                font-size: 14px;
                line-height: 1.6;
            }
        </style>
        <style>
.task-list-item { list-style-type: none; } .task-list-item-checkbox { margin-left: -20px; vertical-align: middle; }
</style>
        
        
        
    </head>
    <body class="vscode-light">
        <h1 id="johnsons-algorithm---all-simple-cycles-in-directed-graph">Johnson's Algorithm - All simple cycles in directed graph</h1>
<ul>
<li><a href="https://www.youtube.com/watch?v=johyrWospv0&amp;list=PLrmLmBdmIlpu2f2g8ltqaaCZiq6GJvl1j&amp;index=14">https://www.youtube.com/watch?v=johyrWospv0&amp;list=PLrmLmBdmIlpu2f2g8ltqaaCZiq6GJvl1j&amp;index=14</a></li>
<li><a href="https://github.com/mission-peace/interview/blob/master/src/com/interview/graph/AllCyclesInDirectedGraphJohnson.java">https://github.com/mission-peace/interview/blob/master/src/com/interview/graph/AllCyclesInDirectedGraphJohnson.java</a></li>
</ul>
<p>通过dfs 逐个查找simple cycle.  比较复杂</p>
<p><img src="file:///e:\gitee\leetcode\graph\pics\simple1.png" alt="simple1.png"></p>

    </body>
    </html>